function parent() {
    this.name = '张三';
    this.age = 18,
    this.obj = {
        school: 'haha',
        sex: 1
    }
}
parent.prototype.work = function() {
    console.log('parent work')
}

function son() {
    parent.call(this)
    this.sss = 'ddd'
}
son.prototype = Object.create(parent.prototype)
son.prototype.constructor = son;
var s = new son()